//
//  UICollectionView+UKQueueCell.m
//  UKListManager
//
//  Created by ET|冰琳 on 16/11/4.
//  Copyright © 2016年 UK. All rights reserved.
//

#import "UICollectionView+UKQueueCell.h"

@implementation UICollectionView (UKQueueCell)

- (void)queueInCell:(Class)cellClass{
    NSString *cellIdenti = NSStringFromClass(cellClass);
    [self queueInCell:cellClass withIdentifier:cellIdenti];
}

- (void)queueInCell:(Class)cellClass withIdentifier:(NSString *)identifier{
    NSString *cellStr = NSStringFromClass(cellClass);
    if ([[NSBundle mainBundle] pathForResource:cellStr ofType:@"nib"]) {
        [self registerNib:[UINib nibWithNibName:cellStr bundle:nil] forCellWithReuseIdentifier:identifier];
    }else{
        [self registerClass:cellClass forCellWithReuseIdentifier:identifier];
    }
}

@end
